package com.A1908.dao;

import com.A1908.entity.FeastInfo;
import com.A1908.entity.PageEntity;
import com.A1908.entity.User;
import com.sun.org.apache.bcel.internal.generic.AALOAD;

import java.util.List;

/**
 * @name:
 * @description:
 * @author: mr.ck
 * @title: talk is cheap, show me the code!!!
 * @time: 2021-03-25 13:07:20
*/


public interface FeastInfoDao {
    /*获取全部宴会信息*/
    List<FeastInfo> getAllFeastInfo(User user);

    /*获取全部宴会信息(分页)*/
    List<FeastInfo> getAllFeastInfo(User user, PageEntity pageEntity);

    List<FeastInfo> getFeastInfoByName(FeastInfo feastInfo, PageEntity pageEntity);

    /*添加宴会信息*/
    int addFeastInfo(FeastInfo info);

    /*删除宴会信息*/
    int delFeastInfo(FeastInfo info,User user);

    /*获取数量*/
    int getCount( User user);

    /*修改宴会信息*/
    int updateFeastInfo(FeastInfo info);

    /*获取数量根据宴会名称*/
    int getCountByName(FeastInfo info);

}
